package com.hibay.goldking.net

import com.hibay.goldking.bean.*
import retrofit2.http.*


/**
 *
 *
 * @author chenchao
 * @date 3/1/21 11:23
 */
@JvmSuppressWildcards
interface ApiService {

    companion object {
        const val BASE_URL = "https://www.wanandroid.com"
    }

    @FormUrlEncoded
    @POST("user/login")
    suspend fun login(
        @Field("username") username: String,
        @Field("password") password: String
    ): ApiResult<UserInfo>
}